package com.mocha.bss.domain.general.contoller.query;

import cn.hutool.core.util.StrUtil;
import com.coffee.mybatis.MybatisQuery;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author: songkui
 * @since: 2022/6/21 16:01
 */
@EqualsAndHashCode(callSuper = false)
@Data
public class LogQuery<T> extends MybatisQuery<T> {
    /** 操作名称 */
    private String name;

    @Override
    public void buildOrderASC() {
        if (StrUtil.isNotEmpty(this.orderASC)){
            if ("id".equals(this.orderASC)){
                this.orderASC = "id";
            }
        }
    }

    @Override
    public void buildOrderDESC() {
        if (StrUtil.isNotEmpty(this.orderASC)){
            if ("id".equals(this.orderASC)){
                this.orderASC = "id";
            }
        }
    }




}

